public boolean isInArea(Area checkArea) {
        if (x <= checkArea.getLocation1().getX()
                || x >= checkArea.getLocation2().getX()
                || y <= checkArea.getLocation1().getY()
                || y >= checkArea.getLocation2().getY())
            return false;
        else
            return true;
    }