border tiles now give correct value