Word checker out of bounds exception fix