private void button2_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.Caffeine;
            if (sum >= 7)
            {
                MessageBox.Show("Success");

                Cubicle n = new Cubicle(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 4;
                if (sum <= 0)
                {
                    LoseScreen x = new LoseScreen();
                }
                else
                {
                    MessageBox.Show("There is not enough time to find the supplies.\n\nYou walk to your cubicle, emptyhanded and unprepared.");

                    Cubicle n = new Cubicle(info);
                    n.Show();
                    this.Hide();
                }
            }
            //what happens when button 2 is clicked
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.TypingSpeed;
            if (sum >= 6)
            {
                MessageBox.Show("Success");

                Cubicle n = new Cubicle(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 3;
                if (sum <= 0)
                {
                    LoseScreen x = new LoseScreen();
                }
                else
                {
                    MessageBox.Show("The computer has crashed.\n\nYou walk to your cubicle, emptyhanded and unprepared");

                    Cubicle n = new Cubicle(info);
                    n.Show();
                    this.Hide();
                }
            }
            //what happens when button 1 is clicked
        }