implemented the UI of the game, fix chooseCardAtIndex