public void handle(ActionEvent e){
            if(e.getSource().equals(mainPageChoices[INDEX_ZERO]) || e.getSource().equals(projectileAnimation.getReturnButton())
                    || e.getSource().equals(pendulumAnimation.getReturnButton())){
                mainPage.setScene(mainPageScene[INDEX_ZERO]);
            }
            if(e.getSource().equals(mainPageChoices[INDEX_ONE]) || e.getSource().equals(wavesAnimation.getReturnButton())
                    || e.getSource().equals(dopplerAnimation.getReturnButton())){
                mainPage.setScene(mainPageScene[INDEX_ONE]);
            }
            if(e.getSource().equals(mainPageChoices[INDEX_TWO]) || e.getSource().equals(circuitAnimation.getReturnButton())
                    || e.getSource().equals(coulombsAnimation.getReturnButton())){
                mainPage.setScene(mainPageScene[INDEX_TWO]);
            }
            if(e.getSource().equals(mainPageChoices[INDEX_THREE])){
                System.exit(0);
            }
        }