Added matching logic
back to the origin version
Added login/join failed logic and matching logic