added auto castle