Added basis for game states management.