Stuck on game socket challenge

Tell us what’s happening:
I am very stuck on this final challenge and cannot figure out the game logic for myself. I was successfully able to code the functions to allow multiple players to join and move with controls, but after that, I am lost. Question is, where can I learn some of this game logic with canvas? Is there certain documentation I can find or a tutorial? How can I make a player avatar, make the coins count for points, add styling to the canvas, scoreboard, etc? Thanks in advance.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36.

Challenge: Secure Real Time Multiplayer Game

Link to the challenge: