Fixed proper goal likelihood ratio calculation (inversely proportional), moved inference procedure into environment goal inference function, inference now takes a dynamic set of goals and calculates their likelihood