Fixed mistake in moveBodiesLinearly.