@Override
	public void update(GameContainer container,StateBasedGame sbg,int delta) throws SlickException {
		xpos = container.getInput().getMouseX();
		ypos = container.getInput().getMouseY();
		
		if (mousePress==1){
			enterGameState(sbg);
		}	
		else if(mousePress==2){
			enterCreditState(sbg);
		}
	}