JAVA implementation of the game "Set"