Made variables private and fixed bug (sending characters while
reconnecting)