Tic Tac Toe bot submitted to hackerrank.com.