added js card rendering, game logic