week 6 documentation
refactored loops and AI logic to game engine'