Closes #37
Added an equals() function to Card.
Corrected error in code.
Some refactoring of the code.