Help making a chess game for my teacher

I’m making a chess game for my teacher, but I’m getting these errors that I can’t figure out how to fix, can someone help?

Project Link: https://arcade.makecode.com/S94496-03131-64256-70999

Are you even allowed to ask for help from us? Like is this for an assignment or anything like that? Just double-checking.