fix crazy action of the tiles when window re-focus

Adding clearInterval and re-setInterval on window forcus and blur.