Update window caption when ending game