major AI fixes and AI included into strategy

Fixes issue #1 for now. (I hope!)

Here's a brief of changes made:
- Connected AI with strategy and fixed bugs encountered along the way.
  - Fixed a few object reference errors.
  - Made a few optimizations where functions were called redundantly.
  - Rewrote the logic for blue ghost. Was mathematically incorrect earlier on.
- Changed a couple of helper functions ( of type canMoveX )