create statemachine class plus tests
more game loop progress