make isometric maps work without hardcoded magic numbers