Game over function not working - need to rewrite and also - should i check if the function has not ended yet in timer?