add on_top_of_wall to player

added ability to check if the player is on top of a wall segment