Dice game of Pig implemented in Java