diff --git a/src/main.c b/src/main.c index 837ff2d..fea5e48 100644 --- a/src/main.c +++ b/src/main.c @@ -55,7 +55,8 @@ __task int main(void) { // If we have finished, break out of this loop if(state.done) break; - add_random_tile(); + // Unable to add a tile. We lost!!! + if(!add_random_tile()) break; draw_tiles(); }