@Override
	public void paintComponent(Graphics g){
		synchronized(lock_critter){
			 synchronized(lock_food){/////////////////////////////////////////////nested lock
		
				if(display_views == true){
					paintViews(g);
				}
				
				Iterator<Critter> iter = play_pen.listIterator();
				while(iter.hasNext()){
					
					Critter temp = iter.next();
			
					g.drawImage(temp.getGraphic(), temp.getPosition().x, temp.getPosition().y, null);			
					
					char value [] = new String("S:"+Integer.toString(temp.stamina) +"/H:"+temp.health).toCharArray();
					if(temp.food == 0){
						g.setColor(Color.BLUE);
					}
					else{
						g.setColor(Color.RED);
					}
					g.drawChars(value, 0, value.length, temp.getPosition().x, temp.getPosition().y);
				}
				
				Iterator<Food> other_iter = food_list.listIterator();
				while(other_iter.hasNext()){
					Food temp = other_iter.next(); 
					g.drawImage(temp.getGraphic(), temp.position.x, temp.position.y, null);
								
				}
			 }
		}
	}