Added AI Logic and generic Collision

Added a collision control for the player and the AI.

Slight modification to the engine class