Some unnecessary code removed
Made frame size and cell size constants