realized I had mismatching get_next_direction and _get_left header prototype with source functions. fixed.