Game state machine working