public void paintComponent(Graphics graphic) {
		super.paintComponent(graphic);

		if(objectsCreated == true) {
			updateWorld();
			graphic.setColor(Color.WHITE);
			graphic.fillRect(player.x - xs, player.y - ys, player.width, player.height);
			graphic.setColor(Color.CYAN);
			if(movingLeft) {
				graphic.fillRect(player.x - xs + 2, player.y - ys + 2, 5, 5);
			}else {
				graphic.fillRect(player.x - xs + player.width - 7, player.y - ys + 2, 5, 5);
			}
			graphic.setColor(Color.WHITE);
			graphic.fillRect(floor.x - xs, floor.y - ys, floor.width, floor.height);
			graphic.setColor(Color.RED);
			graphic.fillRect(floor2.x - xs, floor2.y - ys, floor2.width, floor2.height);
			graphic.setColor(Color.WHITE);
			graphic.fillRect(floor3.x - xs, floor3.y - ys, floor3.width, floor3.height);

			for(int i=0; i < star.length; i++) {
				graphic.fill3DRect(star[i].x - xs, star[i].y - ys, star[i].width, star[i].height, false);
			}

			if(inGame == false) {
				graphic.setColor(Color.RED);
				graphic.drawString("PAUSED", 0, 10);
			}
		}
	}