split game state and animation loops