public void update(GameContainer container, int delta) {
		  Input input = container.getInput();
		  
		        //down
				if (input.isKeyDown(Input.KEY_S) || input.isKeyDown(Input.KEY_DOWN)) {
					Playing.offsetY += dy * delta;
					player = down;
					player.update(delta);
					updatePosition();
					
					if (Level.hitBlockedTile(playerBounds)) {
						Playing.offsetY -= dy * delta;
					}
					
					
					if (Playing.offsetY > Tile.SIZE * Tile.BLOCK - Game.screenHeight - Tile.BLOCK) {
						Playing.offsetY = Tile.SIZE * Tile.BLOCK - Game.screenHeight - Tile.BLOCK;
					}
					
				}
				
				//up
		        if (input.isKeyDown(Input.KEY_W) || input.isKeyDown(Input.KEY_UP)) {
		        	Playing.offsetY -= dy * delta;
					player = up;
					player.update(delta);
					updatePosition();
					
					if (Level.hitBlockedTile(playerBounds)) {
						Playing.offsetY += dy * delta;
					}
					
		            if (Playing.offsetY < 0 + Tile.BLOCK) {
		            	Playing.offsetY = 0 + Tile.BLOCK;
					}
				}
		        
		        //right
		        if (input.isKeyDown(Input.KEY_D) || input.isKeyDown(Input.KEY_RIGHT)) {
		        	Playing.offsetX += dx * delta;
		        	player = right;
		        	player.update(delta);
		        	updatePosition();
		        	
		        	if (Level.hitBlockedTile(playerBounds)) {
						Playing.offsetX -= dx * delta;
					}
		        	
		        	if (Playing.offsetX > Tile.SIZE * Tile.BLOCK - Game.screenWidth - Tile.BLOCK) {
		        		Playing.offsetX = Tile.SIZE * Tile.BLOCK - Game.screenWidth - Tile.BLOCK;
					}
		      	}
		        
		        //left
		        if (input.isKeyDown(Input.KEY_A) || input.isKeyDown(Input.KEY_LEFT)) {
		        	Playing.offsetX -= dx * delta;
		        	player = left;
		        	player.update(delta);
		        	updatePosition();
		        	
		        	if (Level.hitBlockedTile(playerBounds)) {
						Playing.offsetX += dx * delta;
					}
		        	
		        	if (Playing.offsetX < Tile.BLOCK) {
		        		Playing.offsetX = Tile.BLOCK;
					}
		      	}
		        
		        updateRange(input);
		        
	}