Update cards.java

Removed duplicate method