Python Basics - Best (Football) Player

Здравейте, дали някой ще успее да ми отговори къде имам грешка в кода и защо не ми дава Джъдж пълен брой точки, а с примерните Outputs излиза в Pycharm :/ ? (Задача 4. Best Player от примерен изпит 28/29 July 2018)
Благодаря!

 

command = str
hattrick = bool

while True:
    command = input()
    if command != "END":
        player_name = command
        nr_goals = int(input())
        if nr_goals >= 3:
             if nr_goals < 10:
                most_goals = nr_goals
                top_scorer = player_name
                hattrick = True
             else:
                most_goals = nr_goals
                top_scorer = player_name
                hattrick = True
                print(f"{player_name} is the best player!")
                print(f"He has scored {most_goals} goals and made a hat-trick !!!")
                break
        elif nr_goals < 3:
            most_goals = nr_goals
            top_scorer = player_name
            hattrick = False
    else:
         if hattrick == True:
          print(f"{player_name} is the best player!")
          print(f"He has scored {most_goals} goals and made a hat-trick !!!")
          break
         else:
          most_goals = nr_goals
          top_scorer = player_name
          hattrick = False
          print(f"{player_name} is the best player!")
          print(f"He has scored {most_goals} goals.")
          break