Fixed bug where AI may attempt to train peasant without castle.