Set the sections to check if there is free space and take the player move.
Add the computer move. Tried to make it a little bit intelligent, at least.
Added a simple check if the board is full and nobody won.