Fixed bug with pathfinding not using right z coordinate, made it so layer will look in the right direction with clicked to move.