working on transition between game states