dont use setInterval, this way pauses in game loop are respected