Mastermind game written in Python