'Game of Thrones' character was meant to survive until the end of the show