Move handleCollision into game loop for clarity