Implemented my preferred way of handling tile-based maps.