beginning stages of state machine added for creating friendships