Stop trying to access tiles off edge of map