simplified state monad and fixed replay-game-step with it.
added testing of the f1 and f2 with sandbox