Implement tile class in map