Added thread to run pet's life