messy but working utilization of atom game engine
using new game engine loop