bacon game implemented in ruby