Screens are not updating

Hello! I have a problem in which the screens are not updated, I tried several ways but cannot find the error. Can anyone know what it may be?

please format code with </> button * homework policy * asking questions

in the link is the code