Goal detection for trainer