Made checkForWin() more efficient; forgot to mention randomAI() from last commit