Basic collision detection and ai