This is a function of creating tiles on a board for a maze game. I have some restrictions, for example its a NxN matrix the whole board. I have made representation function