Added new function to my AI (master function)
Added parameter to the master AI function