public void setNodeType(int y, int x, int what, boolean b){
		switch(what){
			case GOAL:
				grid[x][y].hasGoal = b;
				break;
			case WALL:
				grid[x][y].hasWall = b;
				break;
			case WUMPUS:
				if(grid[x][y].hasWumpus)
					grid[x][y].wumpusStatus = Node.DEAD;
				else grid[x][y].hasWumpus = b;
				break;
			case PIT:
				grid[x][y].hasPit = b;
				break;
			case MINION:
				if(grid[x][y].hasMinion)
					grid[x][y].minionStatus = Node.DEAD;
				else grid[x][y].hasMinion = b;
				break;
			case AGENT:
				grid[x][y].hasAgent = b;
				break;
			case FAIRY:
				grid[x][y].hasFairy = b;
				break;
			default:
				System.out.println("Improper map object to change.");
				break;
		}
	}