Collision detection for game4: if the player hits a ball the game ends