let the frog move in boundary