sets up basic play loop and game