Fixing a timing bug.
Adding support for large square tiles.