public InstructionScreen()
        {
            int screenWidth = Program.game.screenWidth;
            int screenHeight = Program.game.screenHeight;
            screenRectangle = new Rectangle(0, 0, screenWidth, screenHeight);

            int buttonWidth = screenWidth / 7;
            int buttonHeight = screenHeight / 8;
            int X = 40;
            int Y1 = 40;
            int Y2 = screenHeight / 2 + 5 * buttonHeight / 2;
            menuButton = new Button(new Point(X, Y1), buttonWidth, buttonHeight, "Main Menu", "Buttons/mainMenuButton");
            systemsButton = new Button(new Point(screenWidth / 5 - buttonWidth / 2, Y2), buttonWidth, buttonHeight, "Systems Requirements", "Buttons/system");
            selectButton = new Button(new Point(2 * screenWidth / 5 - buttonWidth / 2, Y2), buttonWidth, buttonHeight, "Select Options", "Buttons/selectOptions");
            gameButton = new Button(new Point(3 * screenWidth / 5 - buttonWidth / 2, Y2), buttonWidth, buttonHeight, "Game Play", "Buttons/gamePlay");
            createButton = new Button(new Point(4 * screenWidth / 5 - buttonWidth / 2, Y2), buttonWidth, buttonHeight, "Creating Mazes", "Buttons/creatingMazes");

            buttons = new List<Button>();
            buttons.Add(menuButton);
            buttons.Add(systemsButton);
            buttons.Add(selectButton);
            buttons.Add(gameButton);
            buttons.Add(createButton);

            instrState = InstrState.SYSTEM;
        }
 public void update()
 {
     if (menuButton.isSelected())
         Program.game.startMainMenu();
     else if (systemsButton.isSelected())
         instrState = InstrState.SYSTEM;
     else if (selectButton.isSelected())
         instrState = InstrState.SELECT;
     else if (gameButton.isSelected())
         instrState = InstrState.GAME;
     else if (createButton.isSelected())
         instrState = InstrState.CREATE;
 }