Update 09-part-viii-enemies-and-basic-ai.html.md

Fix bugs in code samples
Merge pull request #87 from echo99/patch-4

Update 09-part-viii-enemies-and-basic-ai.html.md, closes #86