Added wooden gates to close function