Debugged and tested with new code
Added alert for empty confession