Tic-Tac-Toe game, training project (Hexlet)