selectBuildChoice(buildRank, buildChoicesDict) buildBuildChoices(player1, buildChoicesDict) if handNumber == 5: buildLast() if gameState.last: if p1Last > p2Last: #I tried to do this by saying lastPlayer = player1 or 2, but the score didn't get added selectLastCardsUI(player1) TakeLastCards(table, None, player1, player2).execute() else: selectLastCardsUI(player2) TakeLastCards(table, None, player2, player1).execute() gameState.clear() gameState.waitGO = True if gameState.newGame: pygame.time.wait(4000) #gives them time to see the score of the last round #reset all of the variables and stuff gameNumber += 1 handNumber = 0 turnNumber = 0 firstTime = True deck = Deck() deck.shuffle() table = Table()