write controller js file for game logic
add isWon and playerCardsEmpty to the Game object