Refactor code for client/server, fix bug with duplicate players on mission