public void paintComponent(Graphics g) {
		
		paintScreens(g);
		
		if(startGame) {
			g.setColor(new Color(75,75,75));				//background color
			g.fillRect(0, 0, getWidth(), getHeight());     //Clear screen.
			g.setColor(new Color(0, 0, 0));					//border color
			for(int i = 0; i < myBorder + 1; i++) {
				g.drawLine(
					room.block[0][room.worldWidth-1].x + room.blockSize + i,
					0,
					room.block[0][room.worldWidth-1].x + room.blockSize + i,
					room.block[room.worldHeight-1][0].y + room.blockSize
				); //right border
				g.drawLine(
					room.block[0][0].x - i,
					0,
					room.block[0][0].x - i,
					room.block[room.worldHeight-1][0].y + room.blockSize + i
				); //left border
				g.drawLine(
					room.block[0][0].x - myBorder + 1,
					room.block[room.worldHeight-1][0].y + room.blockSize + i,
					room.block[0][room.worldWidth-1].x + room.blockSize + myBorder,
					room.block[room.worldHeight-1][0].y + room.blockSize + i
				); //drawing bottom border.
			}
			room.draw(g);   //Drawing the room.
			for(int i = 0; i < mobs.length; i++) {
				if(mobs[i].inGame) {
					mobs[i].draw(g);
				}
			}
			store.draw(g);  //Drawing the store.
			if(health < 1) {
				g.setColor(new Color(240, 20, 20));
				g.fillRect(0, 0,  myWidth, myHeight);
				g.setColor(new Color(255, 255, 255));
				g.setFont(new Font("Courier New", Font.BOLD, 14));
				g.drawString("GAME OVER, GET BACK TO WORK YOU BAFOON!", 10, 10);
			}
			if(isWin) {
				g.setColor(new Color(255,255,255));
				g.fillRect(0,  0, getWidth(), getHeight());
				g.setColor(new Color(0, 0, 0));
				g.setFont(new Font("Courier New", Font.BOLD, 14));
				if(level > maxLevel) {
					g.drawString("Congratulations you beat the game! The window will now close...", 10, 10);
				}
				else {
					g.drawString("You beat the level! Please wait for next level...", 10, 10);
				}
			}
		}
	}