@Override
    public void onDraw(Graphics G, int viewX, int viewY) {
        if (X>viewX&&X<viewX+300&&Y>viewY&&Y<viewY+300)
        {
            G.setColor(Color.GREEN);
            G.fillArc((int)(X-1)-viewX, (int)(Y-1)-viewY, 2, 2, 0, 360);
        }
    }