Added simple state transitioning. Now there are two states, walk and idle.