emulating a game of craps in ruby