Added collision detection to the player.