Tic-Tac-Toe-Tomek

Did problem A of the 2013 qualification round: Tic-Tac-Toe-Tomek