Name improvements and redundancy removal.

Renamed previousCell to selectedCell. Removed redunant and inefficient
boolean flags for selected cell.