public void actionPerformed(ActionEvent event)
    {
        Object source = event.getSource();

        if (source == ButtonBuildCity)
        {
            if (check == false) // So that if the user clicks mutliple times he will not just expand the Generator number
            {
                GeneratorNumber = NumberHouses.getText();
                String_to_CharArray.String_to_CharArray(GeneratorNumber);
                dijkstra.RandEdit(String_to_CharArray.Return());
                // BUILDING GENERATOR
                check = true;
                DrawLines();
                DrawBuildings();
            }

        }

        if (source == ButtonReset)
        {
            check = false;
            String_to_CharArray.intNumReset();
            DrawLines();
            DrawBuildings();
        }

    }