Maze Creation and solving in C#