added game over and collision detection