Changing the game loop strucutre

and with that, adding animations