added method to determine if the cpu has a winning move