Started a simple FSM

made a simple FSM that handles the states. Will have to extend it
further so that the battle and the other things are only called during
the right phases.