@Override
		public void actionPerformed(ActionEvent e) {
			// If the new game button was pushed, reinitialize everything and repaint
			if (e.getSource() == newGame){
				fPanel.proj = new Projectile(90,400);
				fPanel.targetLeft.setHit(false);
				fPanel.targetMid.setHit(false);
				fPanel.targetRight.setHit(false);
				aPanel.getAngle().setText("");
				aPanel.getPower().setText("");
				fPanel.endGame = false;
				fPanel.message = false;
				fPanel.repaint();
			} 
			// If the launch button was pushed, check if it's the end of the game
			// and launch the projectile given the values in the appropriate text
			// fields if the game is still going.
			else if (e.getSource() == launch){
				if (fPanel.endGame == false){
					if(fPanel.newProj) {
						fPanel.newProj = false;
						fPanel.proj = new Projectile(90,400);
					}
					fPanel.repaint();
				}
				calcLaunch();
			} 
			// If the checkbox was hit, toggle the showTrajectory variable 
			else if (e.getSource() == trajectory) {
				fPanel.sling.setShowTrajectory();
			} 
			// If none of the above was hit, then it must've been the exit button.
			else {
				System.exit(0);
			}
		}