Added comments in about various parts of the game loop