basic ai

added basic AI, need some improvement. working on it