Convince the AI castle guard to give you the password to enter the castle. AI output can be unpredictable, so try a different approach if you get stuck.