public int move()
    {
        int pointEat = 0;
        pacMan.nextMove();
        
        if (pacMan.isOutOfCellBounds()) {
            pointEat = nextCell(pacMan);
        }
        
        for (Phantom phantom : phantoms) {
            if (phantom.isAValidDirection(phantom.getDirection()) && canExit(phantom)) {
                phantom.nextMove();
            } else {
                phantom.calculateNextDirection(pacMan.getRow(), pacMan.getColumn());
            }

            if (phantom.isOutOfCellBounds()) {
                nextCell(phantom);
            }
        }
        return pointEat;
    }