Almost finished with Mastermind code