adding a second direction
editing the else if