Ruby side game logic