definition of the functions demanded tu run the game