public Platform(int x, int y, Random rand, int maxNumber, Game g) {
		this.x = x;
		this.y = y;
		
		this.width = Game.PLATFORM_WIDTH;
		this.height = Game.PLATFORM_HEIGHT;
		
		number1 = rand.nextInt(maxNumber) + 1;
		if(number1==20){operation=OPERATION_MINUS;}
		else if(number1==1){operation=OPERATION_PLUS;}
		else{operation = rand.nextInt(2)==1?OPERATION_MINUS:OPERATION_PLUS;}
		if(operation==OPERATION_MINUS){
			number2 = rand.nextInt(number1-1)  + 1;
		}
		if(operation==OPERATION_PLUS){
			number2 = rand.nextInt(20-number1) + 1;
		}
		result = calcResult();
		this.g = g;
		
		image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
		constructImage();
	}