Canvas based JS Maze generator