Bug fixes for while loop and Game class initialization