Added various AI routines to sandbox