updated server to run dual threads for messaging and movement inputs