Split game funcs into seperate file