fixed some test cases about the number of tiles, should really make this better somehow...