created objects for functions of the game