I am sorry that the ending confused you. The reason that happened was either because five or more of the blocks were destroyed, or because the generator was destroyed. You can see the health of each block and the health of the generator from the health bars. I would like to make it more obvious why the player lost but due to some personal time constraints I didn't have enough time to do that. Thank you for your feedback.