optimized check win
added framework for AI play in main
added methods to AB