Added AI check for winning in 1 action