added AI to mastermind.rb