added piece death detection, suicidal move prevention, and control map fixes