Finished most of the server. Still few bugs are present