Teleology first: Goals before knowledge and belief