refactoring getNodeByCoods
refactored the getXtilesInFrontOfPacman function.. but still unsure what to do when the tile is a wall (not border)..