moved loop to engine
moved game to engine