corrected bug with gui at end of game