made a class for the gamescreen