It was. They were told how the books would end, but they actually passed ahead of Martin in the books. We're still waiting for book six, I believe. But the directors were given the helm of one of the Rey Star Wars films and wanted to work on that so they rushed through the last season.