adds finishTask function to add true to taskCompleted when input is checked.