position check condition changes in grid class.