Switched from using a struct to a class for Cells

Also switched the function for going to the next cell a part of the
Cell class.