Align indentation
Create a RenderBoard function(class)

This function find the current state of the board. It also places
pieces on the board.
Moved global variables to specific functions that utilize the variables
Create CheckGameResult function(class)

Checks and determines the result. With the new addition of RenderBoard
function, replaced all global state variable to call RenderBoard’s
function
Create AI function(class)

It holds all AI logic
Change counter from fixed number to random 1 or 2
Fix PageLoad function(class)
Create Board function(class)

It sets up initial board (3 x 3) and adds class and id to each square.
Create Game function(class)

It starts a new game.