Fix an NFT example launch problem

Job ID: 32236826

Budget: $10 – $30 USD

https://www.youtube.com/watch?v=_VVqa7zWSxA
https://www.youtube.com/watch?v=y519kGkAQd8

These videos describe an example of NFT game development.
But when I run the code in it, it generates error.
I fixed some of them, but I can't remove the errors totally.
It is described in https://stackoverflow.com/questions/70142394/solidity-throws-unhandledrejections-detected-after-migration-is-finished.
I want you resolve my issue.

I think "truffle migrate --network development --reset" instruction should print valid Pet contents. But now it prints empty values(all elements are zero).

> ganache-cli --version
Ganache CLI v6.12.2 (ganache-core: 2.13.2)
> truffle version
Truffle v5.4.22 (core: 5.4.22)
Solidity - 0.8.10 (solc-js)
Node v14.18.0
Web3.js v1.5.3

My code and output are attached.
If you are an NFT expert, it will be really easy.

Please help me.
Related categories: Non-fungible Tokens (NFT)