If you're confused what this is for then you probably don't need to be here LOL
Google for the chess board and Lichess for the chess pieces. Myself for all the other totally extremely complicated code.