had to fix ispassable and isadjacent because of coordinates to pixels
change