implemented maze generator