added ability to add,and delete friends. Set up state machine, and state factories