Modify ai for better control of character