Mastermind OOP refactor