Fixed an if statement that could lead to an infinite loop if the computer went first.
Final commit, fixed first move logic is the player was first

If the player was first and choose a corner, we must choose the middle
to prevent the player from getting to a state that would let him win.