speed of frog is determined by speed of background