Refactor server.js into routes for bots (upload), games and users and a separate users file for authentication checking