Handle collisions when the player is following the mouse