adding a gameAI class to handle checks for winning situations