public void paint(Graphics2D g){
		g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		
		g.setColor(Color.white);
		g.fillRect(0, 0, width, height);
		
		
		g.setColor(Color.black);
		if(blackSpace!=null){
			g.fillRect(blackSpace.x-viewPointX, blackSpace.y-viewPointY, blackSpace.width, blackSpace.height);
			g.fillRect(0, oldSafeGround-viewPointY, width, height-oldSafeGround+viewPointY);
		}
		else{
			g.fillRect(0, safeGround-viewPointY, width, height-safeGround+viewPointY);
		}
		
		g.setFont(new Font("Arial",Font.PLAIN,30));
		g.drawString(""+score, 10, g.getFontMetrics().getHeight()+5);
		
		for(Platform p : new ArrayList<Platform>(platforms)){
			p.paint(g, width, height, viewPointX, viewPointY);
		}
		player.paint(g, viewPointX, viewPointY);
		
	}