if(){
float goffset;
if(Math.Abs(direction[i,0])+Math.Abs(direction[i,1]>1){
goffset = 1.4f;
}else{
goffset = 1;
}
if(tempData.g>data.g+goffset)
{
tempData.g = data.g + goffset;
tempData.parent = data;
}
}else{
goffset = 1.4f;
}else{
goffset = 1;
}
double h = HFun(newPoint);
PointData newData = new PointData(newPoint,data.g+goffset,h,data)
openList.Add(newData);
for()