refactored the gameflow method a bit