import java.util.*;

public class Deck
{
    public Deck (int player)
    {
        _player = player;
        _theDeck = new ArrayDeque<Integer>();
    }

    public final void add (int value)
    {
        _theDeck.add(value);
    }

    public final int draw ()
    {
        return _theDeck.removeFirst();
    }

    public final int size ()
    {
        return _theDeck.size();
    }
    
    public final boolean empty ()
    {
        return (_theDeck.size() == 0);
    }

    public final int score ()
    {
        int index = _theDeck.size();
        int total = 0;
        Iterator<Integer> iter = _theDeck.iterator();

        while (iter.hasNext())
        {
            total += index * iter.next();

            index--;
        }

        return total;
    }

    @Override
    public String toString ()
    {
        String str = "Player "+_player+"'s deck: ";
        Iterator<Integer> iter = _theDeck.iterator();

        while (iter.hasNext())
        {
            str += iter.next()+", ";
        }

        return str;
    }

    private int _player;
    private ArrayDeque<Integer> _theDeck;
}
@@ -765,24 +765,414 @@
 tal;%0A    %7D%0A%0A
+    @Override%0A    public boolean equals (Object obj)%0A    %7B%0A        if (obj == null)%0A            return false;%0A%0A        if (this == obj)%0A            return true;%0A    %0A        if (getClass() == obj.getClass())%0A        %7B%0A            Deck temp = (Deck) obj;%0A%0A            // ignore player ID for now.%0A%0A            return (_theDeck.equals(temp._theDeck));%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A
     @Overrid

Update Deck.java