Accepting undefined argument in goTo(i,j)