v. 1.2

used an actual game loop template. converted previous mechanics to this