Change grid#cellstatus check to wrap-around grid over x and y