i want you to do flowchart and psudocode for the following gaming code
I will attach you the actual code and the instruction below.
Criteria
Flow of all functions and methods is thoroughly documented with proper shapes and directional arrows. Evidence of the development an algorithm and pseudocode is clear.

