GameLoop class created with testing code