Update maze.js

fixed some errors.