Hearts game in node js