Added multithreading to server

Also prepped server for game and input logic