init + move function with direction