1 & 2 - game loop is the main code of the that runs through the following phases: initialize, update, and draw.
3 - initialize : the game environment is setup, characters, NPCs, etc prepared, background drawn etc.
update: each entity in the game (char, npc, background elements) is updated as needed
draw: next iteration of the screen is drawn with all updates in place