Ultimate Tic-Tac-Toe bot to compete on hackerrank.com