Cat rescued after getting stuck in wood piles