Simple game Tic Tac Toe on Java as task on Hexlet.org