Simplified finding the first air block above saved spawn Y by removing the function and looping through the sections once.