calc_step calls calc_direction

calc_step() depends on calc_direction()