@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		
		for(int i = 0; i < width;i++){
			for(int j = 0; j < height;j++){
				g.drawImage(backTile, i*cellPix, j*cellPix, null);
			}
		}
		
		for (MapObject obj : objects){
			g.drawImage(obj.sprite, obj.x*cellPix, obj.y*cellPix, null);
		}
	}