if statement for adding matches(deadline)