Iterate through tiles in the correct order