Implementation of the card based came Haggins in Java