Optimized learning and created RandomAgent to train.