A simple card match game in JS