Maze on ruby