Remove unused functions in server/utils.js and remove turns