toh: Add run_game() function

Remove the while loop from main() and create a run_game()
routine. Additionally, check for the end game condition from within this
game loop, rather than in the make_move() function.