Also extract new methods - userQuit()
, checkResult()
, etc. Then your main game loop will fit the screen, will be easier to maintain, and prettier.
Avoid useless comments like //main method
when you extract self described methods you will see that you don't need comments.