public static Room buildRoom(EnumArray rm, int y, int x) {
		Room room = new Room();
		switch(rm) {
			case PATH:
				Random r = new Random();
				int num = r.nextInt(10);  
				if (num < 2)
					room.setBehavior(new ItemBehavior(new Potion()));
				else if (num < 4)
					room.setBehavior(new ItemBehavior(new Poison()));
				else
					room.setBehavior(new EmptyBehavior(new NullEffect()));
				num = r.nextInt(10);
				if (num < 1) {
					Party p = new EnemyParty(null, new Coordinate(x,y));
					EnemyLocator.add(p);
					/*room.setOccupied(true);*/
				}
				break;
			case WALL:
				room.setBehavior(new WallBehavior(new NullEffect()));
				break;
			case STRT:
				room.setBehavior(new EmptyBehavior(new NullEffect()));
				break;
			case EXIT:
				room.setBehavior(new EmptyBehavior(new WinGame()));
				break;
		}
		return room;	
	}