codebreaker now works with randomly generated secret code