added comments, created new functions in mastermind and peg. comparison should be working now.