Sample Java game with different output.