Tile jiggle!

--Also reorganized and prettied up a bunch of code