moved game methods into separate file