public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException
	{
		counter += delta;
		if(counter > time)levelOver = true;
		hud.update(gc, sbg, delta);
		text = ((InputBox)hud.getComponent(Hud.InputBoxID)).getText();
		for(int i = 0;i < numWords;i++)
    	{
			if(counter > times[i])
			{
				words[i].update(gc, delta);
			}
			if(words[i].getID().equalsIgnoreCase(text) && words[i].isVisible())
			{
				words[i].setVisible(false);
				points += 10;
				((InputBox)hud.getComponent(Hud.InputBoxID)).eraseText();
			}
    	}
		hud.setPoints(points);
	}