created a separate peg class, board view now uses pegs