seperate game functionality into its own folder