java package to implement rook-like card game