added Screen class that handles display mode stuff