@Override
    public void mousePressed(MouseEvent e)
    {
	if (LocalModel.getInstance().getScreenNumber() == 1)
	{
	    if (e.getX() >= 220 && e.getX() <= 510 && e.getY() >= 330 && e.getY() <= 430)
	    { // CODE FOR IF THE START GAME BUTTON IS CLICKED ON THE TITLE
	      // SCREEN
		LocalModel.getInstance().setStartGame(true);
		LocalModel.getInstance().setScreenUp(true);
		LocalModel.getInstance().setFadeActive(true);
		LocalModel.getInstance().setChangeScreen(true);
		LocalModel.getInstance().setStartButton(true);
	    }
	    if (e.getX() >= 220 && e.getX() <= 510 && e.getY() >= 460 && e.getY() <= 560)
	    {// CODE FOR THE TRAINING ROOM IF CONTROLS BUTTON IS PRESSED
		LocalModel.getInstance().setScreenUp(true);
		LocalModel.getInstance().setFadeActive(true);
		LocalModel.getInstance().setChangeScreen(true);
		LocalModel.getInstance().setControlsButton(true);
	    }
	}
	
	if (LocalModel.getInstance().getScreenNumber() == 2)
	{ // IF IN THE TRAINING ROOM AND BACK BUTTON IS CLICKED (RETURNS TO
	  // TITLE SCREEN)
	    if (LocalModel.getInstance().getStartGame() == false)
	    {
		if (e.getX() >= 15 && e.getX() <= 115 && e.getY() >= 650 && e.getY() <= 685)
		{
		    LocalModel.getInstance().setScreenUp(false);
		    LocalModel.getInstance().setFadeActive(true);
		    LocalModel.getInstance().setChangeScreen(true);
		    LocalModel.getInstance().setControlsButton(false);
		}
	    }
	}
	
    }