Add game handler function