Fix sample AI programs. Add ResultScene. Refactor scenes. Fix score calculation.