I just solved it. I forgot to let it check whether the gameWin is null or not before setting the title. Thanks alot!