Moved and Updated ai