added state machine gem, added additional variables to games table