I got this mostly working, but some of the tiles spawn too soon. The goal is that it always covers the entire screen and loops.