public JPanel display(){
		JPanel frame = new JPanel();
		frame.setLayout(new BorderLayout());

		JPanel labelHolder = new JPanel();
		JPanel gameHolder = new JPanel();
		gameHolder.setLayout(new GridLayout(size, size));
		gameHolder.setOpaque(true);
		
		for(AbstractCookie cookie : cookies){
			cookie.addActionListener(new ActionListener() { 
				public void actionPerformed(ActionEvent e){
	            	//TERRIBLE TERRIBLE DOWNCASTING!
	            	AbstractCookie clickedCookie = (AbstractCookie) e.getSource();
	            	if (clickedCookie.getType() == "Cookie"){
	            		
	            		swapPlayer();
	            		clickedCookie.clickHandler();
	            		
	            		for(AbstractCookie cookieToBeEaten: cookies){
	            			if(cookieToBeEaten.getXPos() >= clickedCookie.getXPos() && cookieToBeEaten.getYPos() >= clickedCookie.getYPos()){
	            				cookieToBeEaten.clickHandler();
	            			}
	            		}
	            	}
	            	else if (clickedCookie.getType()== "Poison"){
	            		for(AbstractCookie cookieToBeEaten: cookies){
	            			if(cookieToBeEaten.getXPos() >= clickedCookie.getXPos() && cookieToBeEaten.getYPos() >= clickedCookie.getYPos()){
	            				cookieToBeEaten.clickHandler();
	            			}
	            		}
	            		//gameOver();
	            		clickedCookie.setEnabled(false);
	            		//frame.setVisible(false);
	            		//frame.dispose();
	            	}
	            }
	        });
			
			gameHolder.add(cookie);
			gameHolder.revalidate();
			
		}
		
		frame.add(labelHolder, BorderLayout.PAGE_START);
		frame.add(gameHolder, BorderLayout.CENTER);
		frame.setMinimumSize(new Dimension(550, 550));
	    frame.setVisible(true);
	    return frame;
	}