intention_modelling.cpp calculates intention_probability for each goal