Changed color of nontouching pegs and cleaned up code.