Moves game states transition to external file

Moves the game states transitions to an external ruby file.