Basic AI in place; now just to make it frustratingly tie-laden, clean up code, and send it off.