Change internal structure of maze data