Console version of the dice game source code