Update Cell.java

Solved code capsulation code.