the game Concentration in java