finished CH4

learn game loop