- Added a safeguard to prevent the game from getting stuck in a wave loop. When the wave timer reaches 0, an additional validation check is triggered to force progression to the next wave if needed. This issue is extremely rare, but the safeguard helps prevent a potential infinite loop if it occurs.