added some basic GFX functionalities, like clearing the screen or managing the framerate