clean up, re-indent code
insert_peg, remove_peg now take Position arg intead of i,j