private int getClickedObject(int cursorX, int cursorY, Room room) {
		for(Object obj : room.getObj()){
			
			if(cursorX > obj.getPositionX() && cursorX < obj.getPositionX() + obj.getWidth()
					&&
					cursorY > obj.getPositionY() && cursorY < obj.getPositionY() + obj.getHeight()){
				
				return room.getObj().indexOf(obj);
			}
		}
		return -1;
	}