check answers logic

added some logic for checking number of answers