public void update(boolean up, boolean down, boolean left, boolean right, Dimension d) {
		//check for movment 
		if(up){
			this.setPlayerY(this.getPlayerY()-3);
			checkAni(iipU);

		}
		else if(down){
			this.setPlayerY(this.getPlayerY()+3);
			checkAni(iipD);
		}
		if(left){
			this.setPlayerX(this.getPlayerX()-3);
			checkAni(iipL);
		}
		else if(right){
			this.setPlayerX(this.getPlayerX()+3);
			checkAni(iipR);
		}

		//create bounds the player cannot pass through
		
		if(d.height-15<this.getPlayerY()){
			this.setPlayerY(d.height-15);
		}
		if(10>this.getPlayerY()){
			this.setPlayerY(10);
		}
		if(d.width-15<this.getPlayerX()){
			this.setPlayerX(d.width-15);
		}
		if(10>this.getPlayerX()){
			this.setPlayerX(10);
		}

		//draw location of player
		playerX=this.getPlayerX();
		playerY=this.getPlayerY();
		
	}