JavaScript Card Game (Assignment 5 COMP2132)