private Position getNextPosition(int cardinalCount) {
        switch (cardinalCount){
            case 'N':
                return new Position(myPosition.getX(), myPosition.getY()-1);
            case 'W':
                return new Position(myPosition.getX()-1, myPosition.getY());
            case 'S': 
                return new Position(myPosition.getX(), myPosition.getY()+1);
            default: 
                return new Position(myPosition.getX()+1, myPosition.getY());
        }
    }