Defines player startup fns and game loop.