Final submission for Mastermind