Added notes.
Fixed AI decision bug.
Merged step-3 into step-4.