He had a few options. Set some aside that he knew was good and fully cooked for the judges. Tell the judges that it isn't ready and ask them to wait. Unfortunately he chose the worst option, serve the poorly cooked food that he knew was poorly cooked.