States Game using a Java set