Javascript memory matrix game sample