Implementation of MVC architecture and data structure for each tile of table