Could you please help me bluescripting a simple tic tac toe game..?

Hello, its series on russian, but in video u could see developing this all step by step