public void onRender(GameContainer gc, Graphics g, StateBasedGame game){
		float scale = 1;
		float mouseX = gc.getInput().getMouseX();
		float mouseY = gc.getInput().getMouseY();
		boolean scaled = false;
		if(mouseX >= x && mouseX <= x + levelWidth && mouseY >= y && mouseY <= y+levelHeight && !c.equals(levelLocked)){
			scale = 1.1f;
			g.translate(-(scale-1) * levelWidth / 2,-(scale-1) * levelHeight / 2);
			scaled = true;
			if(gc.getInput().isMousePressed(0)){
				this.onClick(gc,g,game);
			}
			
		}
		g.setColor(c);
		g.fillRoundRect(x,y,levelWidth * scale,levelHeight * scale,10);
		g.setColor(Color.lightGray);
		g.fillRoundRect(x+levelBorder,y+levelBorder,(levelWidth * scale - levelBorder * 2),(levelHeight * scale - levelBorder * 2),10);
		if(!c.equals(levelLocked)){
			font.drawString(x+(levelWidth * scale - font.getWidth(level))/2, y + (levelHeight* scale - font.getHeight(level))/2, level,c);	
		} else {
			try {
				Image lock = new Image("data/images/lock.png");
				lock.draw(x + (levelWidth - lock.getWidth()) / 2, y + (levelHeight - lock.getHeight()) / 2);
			} catch (SlickException e) {
				e.printStackTrace();
			}
		}
		
		if(scaled){
			g.translate((scale-1) * levelWidth / 2,(scale-1) * levelHeight / 2);
			showTooltip = true;
		} else {
			showTooltip = false;
		}
	}