game is function