edited the game js program
added a condition to detect null answers