this is an early effort of mine,.. simple AI,... but thats exactly where you want to start if thats your thing.