who invented game