How was alauddin khilji trained to become a king?