added resize logic
optimized getCells
added FPS type counter.