Update cell.java

wraparound fix in calcneighbors