move mastermind.rb to lib folder