Code now fully support more than 1 tile