cleaned up some of GM. got functioning game loop