Added "has visited" function to Pegs object