public void track(){ //track the increase/ decrease of a stock
    	if(onScreenRed == true){
    	panel.remove(gArrow);
    	//panel.remove(rArrow);
    	panel.remove(percent2);
    	onScreenRed = false;
    	}
    	if(onScreenGreen == true){
    	panel.remove(gArrow);
    	//panel.remove(rArrow);
    	panel.remove(percent2);
    	onScreenGreen = false;
    	}
    	
    	
    	 		if(tempStockValue <= p.getCash()){
    	        ImageIcon gArrowPic = new ImageIcon("greenArrow.png");
    	        
    	        gArrow = new JLabel(gArrowPic);
    	        gArrow.setBounds(60, 150, 180, 50);
    	        gArrow.setForeground(Color.white);
    	        onScreenGreen = true;
    	        panel.add(gArrow);
    	        
    	        }
    	        if(tempStockValue > p.getCash()){
    	        ImageIcon rArrowPic = new ImageIcon("redArrow.png");
    	        
    	        rArrow = new JLabel(rArrowPic);
    	        rArrow.setBounds(60, 150, 180, 50);
    	        rArrow.setForeground(Color.white);
    	        onScreenRed = true;
    	        panel.add(rArrow);
    	        
    	        }
    	        
    	        if( tempStockValue != 0){
    	        	percent = (int)Math.round(((p.getCash() / tempStockValue)-1)*100);
    	        	//System.out.println(percent);
    	        }
    	       else{  percent = 0; System.out.println(0); }
    	        
    	        percent2 = new JLabel("% "+String.valueOf(percent));
    	        percent2.setBounds(190, 155, 180, 50);
    	        percent2.setFont(new Font("Times New Roman", Font.BOLD, 20));
    	        percent2.setForeground(Color.white);
    	        panel.add(percent2);
    	        tempStockValue = p.getCash();
    	        //pack();
    	        
    	        if(ach.updateAch6() == true && percent > 10){
    	            	values.addAchievementScore();
    	            	statusbar.setText("You got an achievement for stock rising over 10%!");
    	        }
    	        
    	
    }