setting up gameflow