def game_ended(player1, player2):
    """
        Checks if the game has ended
    """
    if player1.get_points() == 11 or player2.get_points() == 11:
        return True
    else:
        return False