refactored main, new classes for handling Go and Tic Tac Toe

Found a bug in TTT AI. Sometimes it places down two squares.