The original version was a straight forward monolithic BASIC-to-Java
conversion. Updated to use common Java coding conventions.
- Split the single static main method into classes. The static part
only contains the bootstrap code for the game.
- Split the word list into three arrays so that there is no need to
use error-prone calculations when choosing the random words.
- Placed the Scanner in a try-with-resources block to ensure that the
scanner gets closed when it is no longer needed.