private int getClickedRoom(int cursorX, int cursorY){
		
		for(Room room : this.map.getRooms()){
			
			if (cursorX > room.getPositionX() && cursorX < room.getPositionX() + room.getWidth()
					&&
					cursorY > room.getPositionY() && cursorY < room.getPositionY() + room.getHeight()){
				
				return map.getRooms().indexOf(room);
			}
		}
		return -1;
	}