Added a state to the client and began using message types. Created a simple system for sending the username to the server before being logged in