AI server: replaced explicit position use with the generic position getters