Fixed problems when connected to server

Moved call to repaint to ListeningThread (after recieve message and call
apply on it) instead of in the DrawListeners (after you send a message)