New boolean variables and functions for when all llayers or enemies are dead.