private boolean cellExists(int xCoordinate, int yCoordinate) {
        return xCoordinate >= 0
                && xCoordinate < getBoardWidth()
                && yCoordinate >= 0
                && yCoordinate < getBoardHeight();
    }