Added states and modified code to allow stopping with the left foot forward