Split out updates/gameloop