Just like regular wack a mole. If (Unpopped Score: > 1000) and (Time: > 20) {you lose}; If (1000 > Unpopped Score:) and (Time: > 20) {you win}; that was javascript.