Refactor turn_left and turn_right

Use a new array-based solution