public void move(Game gm, int dx, int dy) {
		if (move && alive) {
			if(dx>0)
				dir="right";
			if(dx<0)
				dir="left";
			if(dy<0)
				dir="up";
			if(dy>0)
				dir="down";
			gm.MAZE[y][x].char1 = gm.EM;
			if (gm.unitEmpty(x + dx, y + dy)) {
				x = x + dx;
				y = y + dy;
			}
			else if(gm.MAZE[y+dy][x+dx].char1 instanceof Exit && gm.isPathClear()){
				x = x + dx;
				y = y + dy;
				
			}
			gm.MAZE[y][x].char1 = this;
		}

	}