Coding a simple parlor trick/combinatorial game in Java