function compare(uint8 _player,uint _comp) pure internal returns(uint8 result){
        
        
        uint8 _result;

        if (_player==0 && _comp==2){  
            _result = 2;
        }

        else if(_player==2 && _comp==0){ 
            _result = 0;
        }

        else if(_player == _comp){ 
            _result = 1;
        }

        else{
            if (_player > _comp){ 
                _result = 2;
            }
            else{ 
                _result = 0;
            }
        }
        return _result;
    }