added game thread, input and client/server code