@Override
	public void update(GameContainer container, StateBasedGame game, int delta)
			throws SlickException {
		Input in = container.getInput();		

		if (in.isMousePressed(0)) {
			for(int i= 0; i < b.length;i++){
				Vector2f mousePos = new Vector2f(in.getAbsoluteMouseX(),
						in.getAbsoluteMouseY());

				/* Will replace new String in 'Bombify.cfg if player changed 
				  anything and new settings will work after restart */
				if (b[i].isClicked(mousePos)) {
					String tempString = b[i].getString();
					String tempValue = JOptionPane.showInputDialog(null);
					sc.remove(tempString);
					sc.put(tempString, tempValue);					
					//sc.writeToFile();
					
				}
				/* Return to main menu */
				if(returnButton.isClicked(mousePos)){
					game.enterState(returnButton.getShortCut());
				}
				
				/* Quit game */
				if(quitButton.isClicked(mousePos)){
					container.exit();
				}
			}
		}
	}