Implemented game logic for guessing the correct answer