public int move(int destX, int destY){
		if(canMove(destX, destY) == false){
			return -1;
		}
		else{
			this.x = destX;
			this.y = destY;
			//if Hero is at the exit location of the current map, move to next map
			if(this.x == map.getExitLocX() && this.y == map.getExitLocY()){
				if(mapIndex < NUM_MAPS){
					map = dungeonMaps[++mapIndex];
					return 0;
				}
			}
			else if(this.x == map.getEntranceLocX() && this.y == map.getEntranceLocY()){
				if(mapIndex > 0){
					map = dungeonMaps[--mapIndex];
					return 0;
				}
			}
			
			if(mapIndex > 0 && Math.random()*10.0 <= 0.5){
				return 1;
			}
			return 0;
		}
	}