added avoid walls state machine class.