made game function