refactor game_over() function

The only part of ai.js that was still calling drawing functions
was to end the game when the board was full or when the computer
wins.  I moved this into the handle_mouse_click() function so it
checks the state of the board after each move.