Fix king capture bug