public void draw(Graphics g, Point center,int radius)
    {

        if(!opposite)
        {
            if(attribute==0)
            {
                g.drawImage(imageRight,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
            else if (attribute==1)
            {
                g.drawImage(imageDown,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
            else if(attribute==2)
            {
                g.drawImage(imageLeft,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
            else if (attribute==3)
            {
                g.drawImage(imageUp,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
        }
        else
        {

            if(attribute==0)
            {
                g.drawImage(imageoLeft,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
            else if (attribute==1)
            {
                g.drawImage(imageoUp,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
            else if(attribute==2)
            {
                g.drawImage(imageoRight,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
            else if (attribute==3)
            {
                g.drawImage(imageoDown,center.x-radius,center.y-radius,2*radius+10,2*radius,null);
            }
        }
    }