fixed error with pegs exceeding number of peg spots