Refactor minimax ai, improve pruning and fix first player in sinatra game
Fix merge conflicts