Updated tile loading algorithm