wip on setting up game loop