changes to alleviate some frame rate issues. need to learn more about OpenGL to make this better. Bounded player to window