implement the end game function
change appearance of toast view