Entire game code with few bugs like detecting when a user loses a point