Minor improvements.

+Added Passive AI.
+Improved collision resolving function.