public void paint(Graphics g) {
		super.paintComponent(g);

		g.setColor(Color.white);
		g.fillRect(0, 0, 3000, 2000);
		g.setColor(Color.black);
		g.drawString("Play Speed: "+playSpeed, box.resolution().width-120, box.resolution().height-100);

		long currentTime = System.currentTimeMillis();
		if (currentTime > nextSecond) {
			nextSecond += 1000;
			frameInLastSecond = framesInNextSecond;
			if (frameInLastSecond<25){
				lowFPSCounter++;
				if (lowFPSCounter >5 && warningCounter<2){
					lowFPSCounter = 0;
					warningCounter++;
					JOptionPane.showMessageDialog (null, "Current system should be upgraded in order to run this program smoothly.");
				}
			}
			
			
			framesInNextSecond = 0;
		}
		framesInNextSecond++;
		
		g.drawString(frameInLastSecond + " fps", box.resolution().width-120, box.resolution().height-130);

		for (int i = 0; i < pokemons.length; i++) {
			g.drawImage(pokemons[i].image, (int)pokemons[i].displacementX,  (int)pokemons[i].displacementY, Color.white, this);
		}
		
		delayTimer.start();
	}