Functions ObjCheckRightWallDist and ObjCheckLeftWallDist had their names swapped.