@Override
    public int move() {
        int rockMoves = 0,rockWins = 0;
        int paperMoves = 0, paperWins = 0;
        int scissorMoves = 0, scissorWins = 0;
        for(int i = 0;i<moves.size();i++){
            if(moves.get(i)==RPSPlayer.ROCK){
                rockMoves++;
                if(results.get(i)){
                    rockWins++;
                }
            }else if(moves.get(i)==RPSPlayer.PAPER){
                paperMoves++;
                if(results.get(i)){
                    paperWins++;
                }
            }else{
                scissorMoves++;
                if(results.get(i)){
                    scissorWins++;
                }
            }
        }
        
        
        return bestMove(rockMoves,rockWins,paperMoves,paperWins,scissorMoves,scissorWins);
    }