Error in Xs and Os App tutorial on youtube by Stewart Lynch Lesson 4

I get 2 errors again and again saying “Cannot find ‘player1Name’ in scope” and "Value of type ‘string’ has no member ‘name’ " This error pops up even after typing exactly what is written by the teacher in this tutorial. The error message pops up at 4 minutes and 43 seconds into the video, however the error message does not pop up on the teachers’ screen

Please help

Welcome to the community!!
Can you paste your code below? (You may have mistyped something)

Paste your code in as text, rather than providing a screenshot.

To format the code nicely, place 3 back-ticks ``` on the line above your code and 3 back-ticks ``` on the line below your code. The 3 back-ticks must be the ONLY characters on the line. The back-tick character is located on the same keyboard key as the tilde character ~ (which is located below the Esc key on a US English keyboard). You can also highlight an entire code block and click the </> button on the toolbar to wrap the block for you.

This also makes it easier for anyone assisting as they can copy the code and carry out some testing.