https://heloofan.blogspot.com/2023/01/simple-game-code.html