Concentration Game in Javascript mostly