fixed negative indexing issue in check_word
correctly determines if file is correct or not
removed debugging crap
refactored check_word function slightly
correctly prints out words