Number Guessing Game Failed in step 8

Hi all, finally I solved the issue by updating the code logic regarding the update action when the player succeeds in guessing a number (updating the games played and best game). I follow code logic according to this code as the references.

Here is my github for the final code https://github.com/krisdianwidya/freecodecamp-number-guessing-game