Fixed a fps issue in the game in the wall and floor collision detection algorithm