Enter the secret number when prompted.
The second IF block had a wrong boolean block. Changed in [> then guess] from IF [< then guess].