private Item onItem(double nx, double ny){
        for (Item i : model.getItems()){
            Rectangle s = (Rectangle) i.getShape();
            if(s.getX()== nx
                    &&
               s.getY() == ny
                    ){
                return i;
            }
        }
        return null;
    }