@Override
	public void update(GameContainer container, int delta) throws SlickException {
		 Input input = container.getInput();
		 float playerY = playerPaddle.getY();
		 
         if (input.isKeyDown(Input.KEY_UP)) {
        	 if (playerY > UPPER_WALL) {
                 // The lower the delta the slowest the sprite will animate.
                 playerY -= delta * 0.2f;
                 playerPaddle.setY(playerY);
        	 }
          }
	
		if (input.isKeyDown(Input.KEY_DOWN)) {
			if (playerY < BOTTOM_WALL) {
				 // The lower the delta the slowest the sprite will animate.
	            playerY += delta * 0.2f;
                playerPaddle.setY(playerY);
			}
	           
	        }
		
		if (input.isMousePressed(0)) {
			ball.setReleasedInd(true);
		}
		
		// Update ball
		if (!ball.isReleasedInd()) {
			ball.setX(playerPaddle.getX());
			ball.setY(playerPaddle.getY());
		} else {
			float ballX = ball.getX();
			ballX += delta * 0.4f;
			ball.setX(ballX);
		}
		
		
	}