moved game file storage into tmp and moved methods out of controller