converting gameLoop and idleGame to
finished removing angular stuff