I think i fixed it so that if a pathholder moves, the path is reset
hopefully fixed the can't castle if there is a path to one of the sqs