Added main page and script

Properly updates the game board and declares a winner once a goal state
has been reached.