Added AI check if won