handle out of bound square entry