Moved goal detection out of sample_seen_test