FIX bugs, IMPROVE performance

+ Fixed bug when objects could move out of map range.
+ Improved enemy AI performance (path update frequency).
+ Improved performance by looping through gameObjects by iterator.