protected int calculateVerticalDirection(int pacManRow)
    {
        int newDirection;
        int row = getRow();
        if (row > pacManRow) {
            newDirection = 0;
        } else if (row < pacManRow) {
            newDirection = 2;
        } else {
            newDirection = -1;
        }
        return newDirection;
    }