Moved collision detection to the map module to simplify the player.