Adds functionality to check checkmarks based on the boolean 'done' in the task.