Updated source files with the requirements changes.
Implemented moveToNextCell method.