public void update(){
		//System.out.println(TileMap.toTile(loc.x) + " " + TileMap.toTile(loc. y));
		//stamina += 0.5f;
		if(stamina > maxStamina / 25)
			canMove = true;
		if(stamina >= maxStamina)
			stamina = maxStamina;
		if(stamina <= 5)
			canMove = false;
		if( !Keyboard.isKeyDown(Keyboard.KEY_W))
		{
			if( !Keyboard.isKeyDown(Keyboard.KEY_A))
			{
				if( !Keyboard.isKeyDown(Keyboard.KEY_S))
				{
					if ( !Keyboard.isKeyDown(Keyboard.KEY_D) )
					{
		{
			if(stamina<maxStamina)
			{
         stamina+=0.1f;
			}
		}
		}
		}
	    }
		}
	}