public OfficeObject getOfficeObject(int x_cord, int y_cord){
        if(objects.size() == 0)
            return null;

        for (OfficeObject curObject : objects){
            if(x_cord > curObject.getX() && x_cord < curObject.getX() + curObject.getObjectImage().getWidth(null)
                    && y_cord > curObject.getY() && y_cord  < curObject.getY() + curObject.getObjectImage().getHeight(null)){
                System.out.println("found office object: " + curObject.getClass().getSimpleName());
                return curObject;
            }
        }
        return null;
    }