Cleaned the code a little.

Remove already solved tasks and changed most of the *var == '\0' into !*var
expressions.