Collision detection and wander movement fo ghost