You should reinit the map though, otherwise doing this on level 2 causes funny bugs (and makes the game rather easy ;) maze.create = function() {}; var tmp = map.placeObject; map.placeObject = function(x, y, t) { if(t == 'exit') tmp(x,y,t); };
level 2 can be solved by using the two "unlocked" lines to comment out the whole maze.create call, too.
if (false) //
Too bad, because extra `for`s could be fun...