added table.js to represent the card by card game logic