Implemented game over. Fixed bugs