function compare(uint8 player,uint computer) internal returns(uint8 result){
        
        
        uint8 _result;
        
        if (player==0 && computer==2){  
            _result = 2;
        }
        
        else if(player==2 && computer==0){ 
            _result = 0;
        }
        
        else if(player == computer){ 
            _result = 1;
        }
        
        else{
            if (player > computer){ 
                _result = 2;
            }
            else{ 
                _result = 0;
            }
        }
        return _result;
    }