@Override
    public void update(GameContainer gc, StateBasedGame sbg, int delta) throws  SlickException 
    {
    	if (gc.getInput().isKeyDown((Input.KEY_ENTER)) && fenetre==null) 
    	{
    		try {
				fenetre = new Fenetre(GameOverState.getScore());
			} catch (IOException e) {e.printStackTrace();} 
    		  catch (ClassNotFoundException e) {e.printStackTrace();}
	    	fenetre.setVisible(true);
    	}
    	if(fenetre!=null && !fenetre.isVisible())
    	{
	    	fenetre = null;
    		sbg.enterState(MainMenuState.stateID);
    	}
    	
    }