made some fixes, added checkRange function

checkRange fn added to check range of nos even after x or o is checked.