add game update and draw loop