completed drawing loop, added comments for game logic