public void setType(int x){
        this.cellType = x;
        Color pTurn = flag.getTurn();
        if( x == 1 )
            if( pTurn == Color.BLUE )
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "aBlueCell" ) );
            else
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "aRedCell" ) );
        if( x == 2 )
            if( pTurn == Color.BLUE )
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "bBlueCell" ) );
            else
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "bRedCell" ) );
        if( x == 3 )
            if( pTurn == Color.BLUE )
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "cBlueCell" ) );
            else
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "cRedCell" ) );
        if( x == 4 )
            if( pTurn == Color.BLUE )
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "solidBlueCell" ) );
            else
                this.setIcon( new ButtonIcon( buttonSize ).getIcon( "solidRedCell" ) );
        this.setBackground( pTurn );
    }