peg_center now takes a Position instead of (i,j)