Click a peg color on the left to select it then click a hole in the current row (starts from the bottom) to insert that color peg. Once you are happy with your row guess click submit to get the clues.

See full Mastermind rules on Wikipedia.

You Lost

Teal

Yellow

Orange

White

Purple

Magenta