modified forking methods to test for ai and player potential forks
made checForWin generic can check for player or ai winner
made checkForWin work with both player and ai