computer gets stuck on some moves