Used alpha beta pruning and board API to construct a n x n board game with AI