Messages will now send a user inputted message and sleep for 1 second to give time to receive messages after a message is sent. Doubt that's the correct way to implement it, but for now it works. Messages will only work if connected to the internet. Need to change the layout, after enough messages have been shown, the input box gets pushed to the bottom and isn't seen when typing. Maybe have a popup for it instead?