program knows when level is complete