Small improvement of getRandomEmptyCell() method