Simple Maze Creator and Solver in JavaScript