Two player memory game written in Javascript