Added collision detection and gameover state