Refined answer checking

Refined code for checking answers, added answer bound checking to
difficulty extensions